<?PHP


require_once("dbc.php");

if (isset($_GET['deleteArea'])){
	$deleteArea = $_GET['deleteArea'];
}
	
	$filename = basename($deleteArea);
	
	$query="DELETE FROM image WHERE name = '$filename'";
	mysqli_query($dbc, $query);
	
	unlink($deleteArea);


?>
